package com.example.mysimpleexample.activity;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.mysimpleexample.R;
import com.example.mysimpleexample.fragment.MyFragment;
import com.flipboard.bottomsheet.BottomSheetLayout;

public class BottomSheetFragmentActivity extends AppCompatActivity {
    private BottomSheetLayout bottomSheet;
    @Override
    protected void onCreate(@Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bottom_sheet_fragment);
        bottomSheet = findViewById(R.id.bottom_sheet);
        findViewById(R.id.bottomsheet_fragment_button).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                new MyFragment().show(getSupportFragmentManager(),R.id.bottom_sheet);
            }
        });
    }
}
